package com.ykt.job;

import com.jfinal.aop.Enhancer;
import com.ykt.service.PolyvService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author long.hua
 * @version 1.0.0
 * @since 2016-05-29 14:52
 */
public class PolyvJob implements Runnable {
    private static final Logger LOGGER = LoggerFactory.getLogger(PolyvJob.class);

    private PolyvService service = Enhancer.enhance(PolyvService.class.getName(), PolyvService.class);


    public void crawl() {
        LOGGER.info("开始抓取视频信息。。。");
        service.syncVideo();
        LOGGER.info("。。。抓取视频信息结束");
    }


    @Override
    public void run() {
        crawl();
    }
}